import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'

import menufooter from '@/components/menufooter.vue';
import menuheader from '@/components/menuheader.vue';
import personinfo from '@/components/popup/init/personinfo.vue';
import fooddetail from '@/components/popup/food/detail.vue';
import material from '@/components/material/material.vue';

export function createApp() {
  const app = createSSRApp(App)
  app.component('menufooter', menufooter)
  app.component('menuheader', menuheader)
  app.component('personinfo', personinfo)
  app.component('fooddetail', fooddetail)
  app.component('material', material)
  
  return {
    app
  }
}
// #endif